package com.leoman.area.city.dao;

import com.leoman.area.city.entity.City;
import com.leoman.common.dao.IBaseJpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created by Administrator on 2016/6/12.
 */
public interface CityDao extends IBaseJpaRepository<City> {

    @Query("select a from City a where a.province.id = ?1")
    public List<City> findListByProvinceId(Long provinceId);

}
